import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '../views/Login.vue'
import Home from '../views/Home.vue'
const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/login',
    name: 'toLogin',
    component: Login
  },
  {
    path: '/home',
    name: 'Home',
    component: Home,
	children:[
		{path: '/user',name: 'User',component: () => import('../views/User.vue')},
		{path: '/main',name: 'Main',component: () => import('../views/Main.vue')},
		{path: '/website',name: 'Website',component: () => import('../views/Website.vue')},
		{path: '/resource',name: 'Resource',component: () => import('../views/Resource.vue')},
		{path: '/carousel',name: 'Carousel',component: () => import('../views/Carousel.vue')},
		{path: '/notice',name: 'Notice',component: () => import('../views/Notice.vue')},
	]
  },
 
]


const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
